package com.sup.generator.fixedvalue;

/**
 * @author Zh
 * @version v1.0
 * @description:
 * @date 2020/11/13 14:33
 */
public enum GrMessage {

    NOT_LOGIN("未登录"),
    EXECUTE_SUCCESS("执行成功"),
    EXECUTE_FAIL("执行失败"),
    REGISTER_SUCCESS("注册成功"),
    REGISTER_FAIL("注册失败"),
    DATA_NULL("数据不能为空"),
    ACCOUNT_PASSWORD_INCORRECT("账号密码不正确"),
    ACCOUNT_DOES_NOT_EXIST("账户不存在"),
    LOGIN_FAIL("登录失败"),
    LOGIN_SUCCESS("登录成功"),
    SELECT_SUCCESS("查询成功"),
    SELECT_FAIL("查询失败"),
    SAVE_SUCCESS("保存成功"),
    SAVE_FAIL("保存失败"),
    UPDATE_SUCCESS("修改成功"),
    UPDATE_FAIL("修改失败");

    private Integer code;
    private String message;

    GrMessage(int code, String msg) {
        this.code = code;
        this.message = msg;
    }

    GrMessage(String msg) {
        this.code = code;
        this.message = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
